package com.xayy.health.mgt.model;

import cn.kawins.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 事后诊断算法管理表
 *
 * @author zhangxa
 *  tb_diagnose_algorithm_manage
 */


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "HEALTH.tb_diagnose_algorithm_manage")
public class DiagnoseAlgorithmManage extends BaseModel<Integer> {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @Column(name = "id")
    private Integer id;
    /**
     * 算法名称
     */
    @ApiModelProperty("算法名称")
    @Column(name = "algorithm_name")
    private String name;
    /**
     * 算法code
     */
    @ApiModelProperty("算法code")
    @Column(name = "algorithm_code")
    private String code;
    /**
     * 算法类型(1:剔野,2:填充,3:平滑,4:事后诊断,5:趋势预测)
     */
    @ApiModelProperty("算法类型(1:剔野,2:填充,3:平滑,4:事后诊断,5:趋势预测)")
    @Column(name = "algorithm_type")
    private Integer algorithmType;
    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @Column(name = "id")
    private Date createTime;
    /**
     * 是否是内置算法0不是 1是
     */
    @ApiModelProperty("是否是内置算法0不是 1是")
    @Column(name = "is_built_in_algorithms")
    private Integer isBuiltInAlgorithms;
    /**
     * 0单参数1多参数
     */
    @ApiModelProperty("0单参数1多参数")
    @Column(name = "type")
    private Integer type;

    @Override
    public Integer idValue() {
        return id;
    }
}